<?php

declare(strict_types=1);

namespace app\admin\controller;

use app\admin\service\interface\NavService;
use think\facade\View;

// use app\admin\service\UserServiceImpl;

class Nav
{
    /**
     * @var NavService
     */
    private $navService;
    public function __construct(NavService $navService) {
        $this->navService = $navService;
    }
    public function index() 
    {
        # code...
        return View::fetch("",['list'=>$this->navService->list()]);
    }
    public function addItem() 
    {
        # code...
        return View::fetch();
    }
}
